<?php

return array(
    'URL_MODEL'         => 2,
    'URL_HTML_SUFFIX'   => '.html',
    'URL_PATHINFO_DEPR' => '/',
    'URL_ROUTER_ON'     => true,
    'URL_ROUTE_RULES'   =>
        array(
            'Tags/:model/:tag/:p' => 'Home/Tags/index',
            'Tags/:model/:tag'    => 'Home/Tags/index',
            'Tags/:tag/:p'        => 'Home/Tags/index',
            'Tags/:p\d'           => 'Home/Tags/index',
            'Tags/:tag'           => 'Home/Tags/index',
            'Tags'                => 'Home/Tags/index',
            'api/category/:id\d'  => 'api/Category/index',
            'api/slide/:id\d'     => 'api/Slide/index',

            'search'                                   => 'Home/Index/search',
            'verify'                                   => 'Home/Public/verify',
            'sitemap'                                  => 'Home/Sitemap/html',
            'sitemap.xml'                              => 'Home/Sitemap/xml',
            '/^cart$/'                                 => 'Home/Cart/index',
            '/^user$/'                                 => 'Home/User/index',
            '/^login$/'                                => 'Home/Account/login',
            '/^logout$/'                               => 'Home/Account/logout',
            '/^register$/'                             => 'Home/Account/register',
            '/^user\/forgetpwd/'                       => 'Home/Account/forgetpwd',

            /*内容文档路由*/
            '/^([a-z]{1,4})$/'                         => 'Index/index?l=:1',
            '/^([a-z]{1,4})\/show-(\d+)-(\d+)-(\d+)$/' => 'Index/detail?l=:1&catid=:2&id=:3&p=:4',
            '/^show-(\d+)-(\d+)-(\d+)$/'               => 'Index/detail?catid=:1&id=:2&p=:3',
            '/^([a-z]{1,4})\/show-(\d+)-(\d+)$/'       => 'Index/detail?l=:1&catid=:2&id=:3',
            '/^show-(\d+)-(\d+)$/'                     => 'Index/detail?catid=:1&id=:2&',
            '/^([a-z]{1,4})\/list-(\d+)-(\d+)$/'       => 'Index/lists?l=:1&catid=:2&p=:3',
            '/^list-(\d+)-(\d+)$/'                     => 'Index/lists?catid=:1&p=:2',
            '/^([a-z]{1,4})\/list-(\d+)$/'             => 'Index/lists?l=:1&catid=:2',
            '/^list-(\d+)$/'                           => 'Index/lists?catid=:1',
        ),
);